package com.fulihui.wgj.facade.request.template;

import com.fulihui.common.request.rpc.AbstractServiceRequest;
import com.fulihui.weixinsdk.model.MiniProgram;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotBlank;

/**
 * 模板消息发送个人预览请求
 *
 * @author: Levon
 * @date: 2018-07-26 14:33
 */
@Getter
@Setter
public class SinglePreviewRequest extends AbstractServiceRequest {

    @NotBlank(message = "appId不能为空")
    private String appId;

    @NotBlank(message = "openId不能为空")
    private String openId;

    /**
     * 模板ID
     */
    private String templateId;
    /**
     * 模板内容（JSON）
     */
    private String templateContent;
    /**
     * 模板URL
     */
    private String templateUrl;
    /**
     * 小程序相关
     */
    private MiniProgram miniprogram;

    /**
     * 是否小程序
     */
    private Boolean miniApp;
}
